Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requirement: handle VCS URLs correctly in pinned mode #395

Merged
merged 4 commits into from
Oct 31, 2022

Conversation

woodruffw
Copy link
Member

@woodruffw woodruffw commented Oct 29, 2022

This "fixes" #382 by:

1. Turning the unchecked exception into a controlled error
2. Fixing the error message (clarifying that pip doesn't support version pinning on URLs (VCS or otherwise), meaning that URL requirements cannot be used with --no-deps or `--require-hashes)

  1. Explicitly skipping URL dependencies in --no-deps mode, which is compatible with how pip --no-deps behaves

Closes #382.

@woodruffw woodruffw added component:cli CLI components component:dep-sources Dependency sources labels Oct 29, 2022
@woodruffw woodruffw requested a review from di October 29, 2022 22:23
@woodruffw woodruffw self-assigned this Oct 29, 2022
@woodruffw
Copy link
Member Author

cc @Zac-HD for visibility -- this unfortunately won't address your use case, but it'll at least check the error correctly and clarify that --no-deps isn't a valid option with URL requirements 🙂

@woodruffw
Copy link
Member Author

@Zac-HD I believe this now will address your use case! Thanks for bearing with me 🙂

@woodruffw woodruffw merged commit 42a8a03 into main Oct 31, 2022
@woodruffw woodruffw deleted the ww/better-dep-error-handling branch October 31, 2022 17:06
@Zac-HD
Copy link

Zac-HD commented Oct 31, 2022

🙏 Thank you for your careful thought about how to handle this correctly, and for all the work you (and @di) do to maintain such useful tooling for the whole ecosystem 🥰

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:cli CLI components component:dep-sources Dependency sources
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash on package @ git+... dependencies
3 participants